// pages/my_auth_person/index.js
Page({

    /**
     * 页面的初始数据
     */
    data: {
        uploadImgPhoto: 'https://tddtest.zcjb.com.cn/img/auth/photo.png',
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function(options) {

    },

    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady: function() {

    },
    uploadIdcard1: function() {
        var that = this;
        wx.chooseImage({
            count: 1,
            success: function(res) {
                const tempFilePaths = res.tempFilePaths
                // wx.showToast({
                //   title: '图片选择成功，路径为' + tempFilePaths,
                //   icon: 'none'
                // })
                that.setData({
                    uploadImg1: tempFilePaths
                })
            }
        })
    },
    uploadIdcard2: function() {
        var that = this;
        wx.chooseImage({
            count: 1,
            success: function(res) {
                const tempFilePaths = res.tempFilePaths
                // wx.showToast({
                //   title: '图片选择成功，路径为' + tempFilePaths,
                //   icon: 'none'
                // })
                that.setData({
                    uploadImg2: tempFilePaths
                })
            }
        })
    },
    submitAuthPersonInfo: function() {

        wx.switchTab({
            url: '/pages/my_account/index',
        })
    }
})